package com.campus.common.message;

import java.io.Serializable;
import com.campus.common.vo.Student;

public class StudentAccountManagementRequest extends BaseMessage implements Serializable {
    private String action;  // "list", "borrow", "return"
    private String studentId;
    private Student student;
    private String searchId;
    private String searchName;


    public StudentAccountManagementRequest() {}
    public StudentAccountManagementRequest(String action, String studentId) {
        this.action = action;
        this.studentId = studentId;
    }
    public StudentAccountManagementRequest(String action, Student  student) {
        this.action = action;
        this.student = student;
    }
    public StudentAccountManagementRequest(String action, String searchId, String searchName) {
        this.action = action;
        this.searchName = searchName;
        this.searchId = searchId;
    }

    public String getAction() { return action; }
    public String getStudentId() { return studentId; }
    public Student getStudent() { return student; }
    public String getSearchId() { return searchId; }
    public String getSearchName() { return searchName ; }
}